<include file="Public/min-header" />
<style>
    .col100{width:100px;text-align:center;float:left;display:inline;border-right:1px solid #0080FF;}
    .col150{width:150px;text-align:center;float:left;display:inline;border-right:1px solid #0080FF;}
    .col300{width:300px;text-align:center;float:left;display:inline;border-right:1px solid #0080FF;}
    .coltop{border-top:1px solid #0080FF;}
    .colno{border-right:none;}
    .wrapper{min-height:1000px!important;}
</style>
<div class="wrapper">
    <include file="Public/breadcrumb" />
    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <div class="box">
                    <div class="box-header">
                        <nav class="navbar navbar-default">
                            <div class="collapse navbar-collapse">
                                <form class="navbar-form form-inline" action="{:U('Goods/comment')}" method="post">
                                    <div class="form-group">
                                        <input type="text" style="width:300px;" name="keywords" class="form-control" value="{$keywords}" placeholder="请输入订单号或商品名称">
                                    </div>
                                    <button type="submit" class="btn btn-primary">提交</button>
                                </form>
                            </div>
                        </nav>
                    </div>
                    <div class="box-body">
                        <div class="row">
                            <div class="col-sm-12">
                                <table id="list-table" class="table table-bordered table-striped dataTable">
                                    <thead>
                                    <tr role="row">
                                        <th>ID</th>
                                        <th width="180">订单号</th>
                                        <th width="180">商品名称</th>
                                        <th>商家名称</th>
                                        <th>评论者</th>
                                        <th>评论分数</th>
                                        <th>评论内容</th>
                                        <th>评论图片</th>
                                        <th>评论时间</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <foreach name="comment_list" item="vo" key="k">
                                        <tr role="row" align="center">
                                            <td style="line-height:34px;">{$vo.id}</td>
                                            <td class="order_sn" align="left">
                                                <div style="line-height:34px;">{$vo['order_sn']}</div>
                                            </td>
                                            <td align="left" style="line-height:34px;">{$vo.goods_name}(规格:{$vo.spec_name})</td>
                                            <td align="left" style="line-height:34px;">{$vo.store_name}</td>
                                            <td align="left" style="line-height:34px;">{$vo.user_name}</td>
                                            <td align="left" style="line-height:34px;">{$vo.star}</td>
                                            <td align="left" style="line-height:34px;">{$vo.contents}</td>
                                            <td align="left" style="line-height:34px;" class="all_img">
                                                <volist name="vo['images']" id="val">
                                                    <a href="__ROOT__/Public/upload/user/{$val}" target="_blank" style="margin-right:10px;">
                                                        <img src="__ROOT__/Public/upload/user/{$val}" height="30">
                                                    </a>
                                                </volist>
                                            </td>
                                            <td align="left" style="line-height:34px;">{$vo.add_time|date="Y-m-d H:i:s",###}</td>
                                        </tr>
                                    </foreach>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-6 text-left"></div>
                            <div class="col-sm-6 text-right">{$page}</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
</div>
</body>
<script>
    $('.order_sn').mouseenter(function(){
        $(this).find('.goods_list').show();
    }).mouseleave(function(){
        $(this).find('.goods_list').hide();
    });
</script>
</html>
